﻿using Chromium;
using Chromium.Remote;
using Chromium.Remote.Event;
using M5.GeminiHybird.Core.Attribute;
using M5.GeminiHybird.Core.JavascriptEvent;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace M5.GeminiHybird.Core.JavascriptEvent
{
    internal class TestEvent : BaseJavescriptEvent
    {
        public class aaa
        {
            public int age { get; set; }
            public string name { get; set; }

            public DateTime ddd { get; set; }
        }



        [JavascriptMethod]
        public string Index(aaa test, string aaa)
        {
            //可以直接返回对象
            //return new aaa()
            //{
            //    name = "qqq",
            //    age = 32,
            //    ddd = DateTime.Now
            //};

            return DateTime.Now.ToString();
        }
    }
}
